package com.woniuxy.cloud.userassembly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.cloud.entity.TGoodCar;
import com.woniuxy.cloud.form.AddGoodCarForm;
import com.woniuxy.cloud.form.AddUserCarForm;
import io.swagger.models.auth.In;

import java.util.List;


/**
 * <p>
 * 商品购物车表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2021-09-24
 */
public interface ITGoodCarService extends IService<TGoodCar> {
      TGoodCar getGoodCarByGoodCarId(Integer goodCarId);

      Integer addGoodCar(TGoodCar tGoodCar);

      Integer deleteUserGoodCarByGoodCarId(Integer GoodCarId);

      //修改商品购物车数量平修改小计
      Integer updateGoodCarNumByGoodCarId(Integer goodCarId,Integer goodCarNum,Double total);

      List<TGoodCar> getGoodCarListByUserId(Integer userId);

      List<TGoodCar> getGoodCarByIds(List<Integer> ids);

      //查询商品购物车是否重复
      TGoodCar getGoodCarByUserIdAndGoodId(Integer userId,Integer goodCarStoreGoodId);
}
